<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>

<style type="text/css">
/* <![CDATA[ */

table, td
{
    border-color: #666;
    border-style: solid;
}
table, th
{
    border-color: #666;
    border-style: solid;
}

table
{
    border-width: 0 0 1px 1px;
    border-spacing: 0;
    border-collapse: collapse;
}
 
td
{
    margin: 0;
    padding: 4px;
    border-width: 1px 1px 0 0;
}
th
{
    margin: 0;
    padding: 4px;
    border-width: 1px 1px 0 0;
}

/* ]]> */
</style>
</head>

<body  style="font-family:Arial, Helvetica, sans-serif">
<h1>Recent Sold Out ( Last 4 Weeks)</h1>
<table width="800" border="0" cellspacing="1" cellpadding="5">
  <tr>
    <th scope="col">Code</th>
    <th scope="col">Description</th>
    <th scope="col">Sales Qty</th>
    <th scope="col">Faulty Qty</th>
    <th scope="col">Wh Stock</th>
  </tr>
<?php foreach($this->arrResEmpty as $k =>$v){?>  
  <tr>
    <td><?php echo $v[1]?></td>
    <td><?php echo $v[2]?></td>
    <td><?php echo $v[3]?></td>
    <td><?php echo $v[4]?></td>
    <td><?php echo $v[5]?>

    </td>
  </tr>
<?php } ?>  
</table>
<h1>4 Weeks No Sales</h1>
* Please return half of your stock,If you have 5 pieces in hand ,Please return 2  <br />
** For Urgent return item, please make sure return half of the stock on time <br />

<table width="800" border="0" cellspacing="1" cellpadding="5">
  <tr>
    <th scope="col">Code</th>
    <th scope="col">Description</th>
    <th scope="col">Your Stock</th>
    <th scope="col"><span style="background-color:#FF0">Urgent Return</span></th>
  </tr>
<?php foreach($this->arrRes as $k =>$v){?>  
  <tr>
    <td><a href="/repairparts/part-move-history-shop/shop/<?php echo $this->idShop;?>?part_code=<?php echo $v[1]?>" target="_blank" style="text-decoration:none" ><?php echo $v[1]?></a></td>
    <td><?php echo $v[2]?></td>
    <td><?php echo $v[3]?></td>
    <td>
        <?php
    if($v[3] > 2 && $v[5] >3 ){
		echo "Please Return";
		//echo "Others Sales:(".$v[5].")<br /> WH Stock(".$v[4].")";
		//echo "<br />Transfer You:".$v[6];
		}
	
	?>
    
    </td>
  </tr>
<?php } ?>  
</table>

</body>
</html>
